EXERCISE 6: Let's try a longer refactor with return statements. (This refactor will take 4 steps.)

  • Go to and drag in Define Function with Parameters ABOVE the remaining code.
  • Rename the function create_circles(size, color).
  • Indent the renaming code underneath your new function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)